#ifndef _RAND_H_
#define _RAND_H_

extern "C"
{
#include "SFMT.h"
};
#include <ctime>

class Random
{
public:
	Random()
	{
	}

	~Random()
	{
	}

	unsigned Seed();

	unsigned Get(unsigned range);
};

extern Random Rand;

inline unsigned Random::Seed()
{
	unsigned seed = std::time(NULL);
	init_gen_rand(seed);
	return seed;
}

inline unsigned Random::Get(unsigned range)
{
	return gen_rand32() % range;
}



#endif
